<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<pre>
			<xmp>
				插值mustach{{}} === v-text === innerText
				v-if === innerHtml
				频繁切换:v-show
				切换少：v-if
			</xmp>
		</pre>
		<div id="app">
			{{name}}
			<p v-text="name"></p>
			<p v-html="message"></p>
			<ul>
				<li v-for="(item, index) in menuList" :key="index">{{item.text}}</li>
			</ul>
		</div>
		<script src="../node_modules/vue/dist/vue.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			let vm = new Vue({
				el: '#app',
				data(){
					return {
						name: 'qianfeng',
						age: 22,
						message: '<h2>this is message</h2>',
						menuList: [{
							text: '123',
						},{
							text: '456',
						}]
					}
				},
			})
			
			
		</script>
	</body>
</html>
